import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path:"/",
      redirect: "/login"
    },
    {
      path: '/login',
      name: 'login',
      component:()=>import('@/components/login.vue')
    },{
      path: '/homePage',
      name: 'homePage',
      component:()=>import('@/components/homePage.vue'),
      children:[
        {
          path: '/showBook',
          name: 'showBook',
          component:()=>import('@/components/view/showBook.vue')
        }
      ]
    }
  ]
})
